import request from '@/utils/request'

// 查询商户推送结果统计列表
export function listDataCount(query) {
  return request({
    url: '/merchant/dataCount/list',
    method: 'get',
    params: query
  })
}

// 查询商户推送结果统计详细
export function getDataCount(id) {
  return request({
    url: '/merchant/dataCount/' + id,
    method: 'get'
  })
}

// 新增商户推送结果统计
export function addDataCount(data) {
  return request({
    url: '/merchant/dataCount',
    method: 'post',
    data: data
  })
}

// 修改商户推送结果统计
export function updateDataCount(data) {
  return request({
    url: '/merchant/dataCount',
    method: 'put',
    data: data
  })
}

// 删除商户推送结果统计
export function delDataCount(id) {
  return request({
    url: '/merchant/dataCount/' + id,
    method: 'delete'
  })
}
